package com.yyq.gxdc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yyq.gxdc.entity.DiningTable;
import com.yyq.gxdc.entity.Dish;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DiningTableMapper extends BaseMapper<DiningTable> {

    public List<DiningTable> find(DiningTable dish);

    public DiningTable findById(int id);

    /** 这边搜的rname   列表分页查询  */
    IPage<DiningTable> getAllDiningTable(Page<DiningTable> page, @Param("query") DiningTable diningTable);

    List<DiningTable> getUnUseTable(@Param("tableType") Integer tableType);
}
